package com.pwc.testing.test;

import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;

public class GoogleTestCase {

	@Test
	public void runGoogle() {

		ChromeOptions o = new ChromeOptions();
		o.addArguments("disable-extensions");
		o.addArguments("--start-maximized");
		String exePath = "driver\\chromedriver.exe";
		System.setProperty("webdriver.chrome.driver", exePath);
		WebDriver driver = new ChromeDriver(o);
		
		
		driver.get("http://www.google.com");
		
		driver.findElement(new By.ByName("q") ).sendKeys("PwC");
		
		
		

	}

}
